package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.mapper") //扫描的mapper

public class OrderAndUserBetaApplication {

    public static void main(String[] args) {
       SpringApplication.run(OrderAndUserBetaApplication.class, args);

//        HttpTools ht=new HttpTools();
//        String userJson = ht.sendPost("http://localhost:8081/user",null);
//        //System.out.println(userJson);
//        String jsonStr= JSONObject.toJSONString(userJson);
//        System.out.println(userJson);
//        System.out.println(jsonStr);
//        JSONObject object = JSONObject
//                .parseObject("{\"boolean\":true,\"string\":\"string\",\"list\":[1,2,3],\"int\":2}");

        //object = JSONObject
        //        .parseObject("{\"address\":\"chengdu\",\"password\":\"000000\",\"userid\":1,\"username\":\"linrui\"}");


//        List<Integer> integers = JSON.parseArray(object.getJSONArray("list").toJSONString(),Integer.class);
//        integers.forEach(System.out::println);

    }

}
